//先引入mockjs库
import Mock from'mockjs';
//引入JSON数据
import slide from './slide.json';
import floor from './floor.json';

//mock数据两个参数：1、请求url、2、请求方法返回数据
Mock.mock('http://www.0410.com/floor','get',{code:200,message:'成功',ok:true,data:floor})

Mock.mock('http://www.0410.com/slide','get',{code:200,message:'成功',ok:true,data:slide})